import myAxios from './http';
// 登录注册部分的api
function register(params) {
  return myAxios({
    url: '/register/',
    methods: 'post',
    data: params,
  });
}
function login(params) {
  return myAxios({
    url: '/login/',
    methods: 'post',
    data: params,
  });
}
export default {
  // 在这里导出所有函数
  register,
  login,
};
